package com.kaifamiao.month04.day22;

public class Demo {

    public static void main(String[] args) {
        Class1 obj1 = new Class1();
        Class2 obj2 = new Class2("hello","world");
        obj1.x = 10;
        obj2.show();
        Class2 obj3 = new Class2();
        obj3.show("hello,world");
        obj1.setY(false);
        obj3.x = obj2;
        Class1 obj4 = new Class1();
        obj1.setY(obj4.show());
        Class1 obj6 = new Class1();
        Class1 obj5 = new Class1();
        obj5.show(obj6.x);
        obj2.obj8.x = 10;
        Class2 obj9 = new Class2();
        obj9.obj10.show(obj1.obj2.display());
        obj9.obj10.show(obj1.obj2.display(obj3.x, 100, "hello,world!"));
    }
}
